home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
misc
/
emu
/
ASpEmu_NOROM.lha
/
ASpV076
/
Rexx
/
POKEr.asprx
< prev
next >
Wrap
Text File
|
2000-10-20
|
650b
|
27 lines
/* $VER: POKEr 1.0 */
/* Ask for POKE values until user quits. */
IF OPEN(MYWIN,'CON:0/0/320/150/POKEr.asprx Input Window/AUTO',R) THEN DO
WRITELN(MYWIN,'Demo POKE system.')
WRITELN(MYWIN,'Address range 0-65535, value range 0-255')
oneline='aa'
DO WHILE oneline~=''
WRITELN(MYWIN,'')
WRITELN(MYWIN,'Enter <addr>,<val> or just Enter to quit')
WRITECH(MYWIN,'POKE ')
oneline=READLN(MYWIN)
IF oneline~='' THEN DO
PARSE VAR oneline addr','val
IF (addr<0 | addr>65535 | val<0 | val>255) THEN WRITELN(MYWIN,'Number out of range! Try again!')
ELSE DO
POKE addr val
WRITELN(MYWIN,'Ok.')
END
END
END
CLOSE(MYWIN)
END